Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce java provided by IBM #179

Merged
merged 3 commits into from
Jan 3, 2025
Merged

Enforce java provided by IBM #179

merged 3 commits into from
Jan 3, 2025

Conversation

jonnyz32
Copy link
Collaborator

@jonnyz32 jonnyz32 commented Dec 18, 2024

Update docs, to ensure user uses the correct java version.
Exit program if java version is not from IBM.
closes #178

-bash-5.2$ java -jar manzan-1.0-jar-with-dependencies.jar --configdir=/Qopensys/etc/manzanjz
Java vendor: Eclipse OpenJ9
Error: This application requires Java provided by IBM
-bash-5.2$ export JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit
-bash-5.2$ java -jar manzan-1.0-jar-with-dependencies.jar --configdir=/Qopensys/etc/manzanjz
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Apache Camel version 3.14.8
target URI: stream://file?fileName=/tmp/mzntestoutput
STRWCH Command:
QSYS/STRWCH SSNID(jonathankk)  WCHPGM(MANZAN/HANDLER) WCHMSG((*ALL)) WCHMSGQ(JONATHAN/MANZANQ)
Watch jonathankk started successfully

@jonnyz32 jonnyz32 changed the title Update docs, regarding java version Enforce java provided by IBM Dec 18, 2024
@SanjulaGanepola
Copy link
Collaborator

Can we try using null instead of *CURRENT as mentioned here: IBM/JTOpen#49

@SanjulaGanepola
Copy link
Collaborator

Can we try using null instead of *CURRENT as mentioned here: IBM/JTOpen#49

@ThePrez Any comment on this change? I found the original issue you opened on passing *CURRENT as the password when using OpenJDK. Seems like passing in null is not yet supported so using IBM java is a requirement for now?

@ThePrez
Copy link
Owner

ThePrez commented Jan 3, 2025

Can we try using null instead of *CURRENT as mentioned here: IBM/JTOpen#49

@ThePrez Any comment on this change? I found the original issue you opened on passing *CURRENT as the password when using OpenJDK. Seems like passing in null is not yet supported so using IBM java is a requirement for now?

Yes, unfortunately OpenJDK does not yet support this. 🙁
We will eventually need to use null instead of *CURRENT but I think that will require changes to the JT400 camel component

@ThePrez ThePrez merged commit bdb2eeb into main Jan 3, 2025
2 checks passed
@ThePrez ThePrez deleted the update-docs-java-version branch January 3, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants